import React from 'react'
import ReactDOM from "react-dom";
// import {HashRouter, Route, Switch, hashHistory} from 'react-router-dom';
import {BrowserRouter as Router, Route} from "react-router-dom";
import Home from '../containers/home.js'
import Detail from '../containers/detail.js'
import A from '../containers/A.js'
import Index from '../containers/index.js'
import advantage from '../containers/advantage.js'
import App from '../App';
import Store from '../components/testStore'
/*const BasicRoute = () => (
     <Router>
        <div>
            <Route exact path="/">
                <App />
                <Route path="/detail">
                    <Detail />
                </Route>
            </Route>
        </div>
    </Router>
);*/


const routes = [
    {
        path: '/',
        component: App,
        exact: true,
    },
    {
        path: '/advantage',
        component: advantage,
        children: [
            {
                path: '/advantage/advantage1',
                component: A
            }
        ]
    },
    {
        path: '/Home',
        component: Home,
        exact: true,
    },   {
        path: '/store',
        component: Store,
        exact: true,
    },
]

export  { routes };


